package com.gdufe.mistakebook.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 错题标签
 *
 * @TableName label
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Label implements Serializable {
    /**
     * 标签id
     */
    private Integer id;

    /**
     * 标签所属用户id
     */
    private Integer userId;

    /**
     * 1-存在；0-删除
     */
    private Integer status;

    /**
     * 标签名
     */
    private String labelName;

    /**
     * 标签创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 标签更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}